<extend name="Public/List/Common"/>
<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
            <thead>
            <tr>
                <th data-order-field="id">编号</th>
                <th>字段</th>
                <th>名称</th>
                <th>类型</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <volist id="v" name="_list">
                <tr>
                    <td>{$v.id}</td>
                    <td>{$v.name}</td>
                    <td>{$v.title}</td>
                    <td>{$v.type}</td>
                    <td>{$v.status|columnToName="DEFAULE_STATUS",###}</td>
                    <td>
                        <a href="{:U('edit', array('id'=>$v['id'],'model_id'=>$v['model_id']))}" class="btn btn-green" data-toggle="dialog" data-width="600"
                           data-height="450" data-id="dialog-mask" data-mask="true">编辑</a>
                        <a href="{:U('toggleStatus?id='.$v['id'])}" class="btn btn-{$v['status']==0?'blue':'red'}"
                           data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">{$v['status']==0?'启用':'禁用'}</a>
                        <a href="{:U('del?id='.$v['id'])}" class="btn btn-red row-del" data-toggle="doajax"
                           data-confirm-msg="确定要删除该行信息吗？">删</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
</block>